//
// Created by Mzoro on 2022/3/9.
//


void escape(char s[], const char t[]){

    char c;
    int i = 0;

    while ((c = t[i]) != '\0') {
        switch (c) {
            case '\t': {
                s[i] = '\\';
                i++;
                s[i] = 't';
                break;
            }
            case '\n': {
                s[i] = '\\';
                i++;
                s[i] = 'n';
                break;
            }
            default: {
                s[i] = c;
            }
        }
        i++;
    }
    s[i] = '\0';

}